Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODDispatcher


AddMonitor

The AddMonitor method adds the specified dispatch module, which is a monitor for the specified event type, to the dispatch module dictionary.

void AddMonitor (in ODEventType eventType, 
                 in ODDispatchModule dispatchModule);
eventType
A platform-specific event code that specifies the type of event to be handled by the new dispatch module. On the Mac OS platform, the event code is defined as an unsigned 16-bit value.
dispatchModule
A reference to a dispatch module to be added.
DISCUSSION
Your part editor calls this method to install a custom dispatch module as a monitor for the specified event type. This method is not called by part editors under normal circumstances.

EXCEPTIONS
kODErrIllegalNullDispatchModuleInput
The dispatchModule parameter is null.
SEE ALSO
The ODEventType type (page 892).
The ODDispatcher::RemoveMonitor method (page 122).
The ODDispatchModule class (page 127).
"Using a Dispatch Module as a Monitor" on page 448 in OpenDoc Programmer's Guide.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help